#!/usr/bin/env bash

set -e

source ~/.nvm/nvm.sh
nvm install 14
nvm use 14
npm install -g yarn --registry=http://bnpm.byted.org/
export npm_config_grpc_node_binary_host_mirror=https://npm.taobao.org/mirrors
export HUSKY_SKIP_INSTALL=1
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export CYPRESS_INSTALL_BINARY=0
yarn install
ROUTE_IP=10.17.91.134 yarn scm
